agents.anac.y2010.AgentSmith
Class OpponentModel

java.lang.Object
  extended by agents.anac.y2010.AgentSmith.OpponentModel
All Implemented Interfaces:
IOpponentModel

public class OpponentModel
extends java.lang.Object
implements IOpponentModel

The OpponentModel. This model manages the opponents preferences, stores the bids and based on the number of times the opponent proposes a specific option in a bid, that option becomes more important and our agent uses this information to construct its own bids.


Constructor Summary
OpponentModel(PreferenceProfileManager pPreferenceProfileManager, BidHistory pBidHistory)
          Constructor
 
Method Summary
 void addBid(Bid pBid)
          Adds the values of each issue of a bid to the preferenceprofilemanager
 double getUtility(Bid pBid)
          Returns the utility of a bid, but instead of the normal utility it is based on the weights of each issues
 java.util.HashMap<Issue,java.lang.Double> getWeights()
          Returns a hashmap with the weights for each of the issues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpponentModel

public OpponentModel(PreferenceProfileManager pPreferenceProfileManager,
                     BidHistory pBidHistory)
Constructor

Method Detail

addBid

public void addBid(Bid pBid)
Adds the values of each issue of a bid to the preferenceprofilemanager

Specified by:
addBid in interface IOpponentModel

getWeights

public java.util.HashMap<Issue,java.lang.Double> getWeights()
Returns a hashmap with the weights for each of the issues


getUtility

public double getUtility(Bid pBid)
Returns the utility of a bid, but instead of the normal utility it is based on the weights of each issues

Specified by:
getUtility in interface IOpponentModel